package com.bonc.rms.dao.impl.tms;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.bonc.rms.dao.tms.IEntryLeaveDao;
import com.bonc.rms.mapper.EntryLeaveMapper;

@Repository
public class EntryLeaveDaoImpl implements IEntryLeaveDao {

	@Autowired
	EntryLeaveMapper entryLeaveMapper;
	
	@Override
	public List<Map<String, Object>> getEntryMap(Integer departmentId,
			String startMonth, String endMonth) {
		return entryLeaveMapper.getEntryMap(departmentId, startMonth, endMonth);
	}

	@Override
	public List<Map<String, Object>> getLeaveMap(Integer departmentId,
			String startMonth, String endMonth) {
		return entryLeaveMapper.getLeaveMap(departmentId, startMonth, endMonth);
	}

	@Override
	public int getInitialNumber(Integer departmentId, String endMonth) {
		return entryLeaveMapper.getInitialNumber(departmentId, endMonth);
	}

}
